#ifndef __SCHEMA_H_
#define __SCHEMA_H_

struct AttSchema {
	Type myType;
	char *name;
};

class Schema {

        // gives the attributes in the schema
        int numAtts;
        AttSchema *myAtts;

	friend class Record; 

public:

	// get the type of the given attribute
	Type FindType (int i);

	// get the index of the given attribute
	int Find (char *attName);

	// just like in the assignment
	Schema (char *fName, char *relName);
	~Schema ();

};


#endif /* __SCHEMA_H_ */
